package com.antoco.operation.bigscreen.controller.modelcontroller.intf;

import com.antoco.operation.bigscreen.model.dto.ThisDaySuiziDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Api(tags = "当前监测值 API")
public interface ThisDaySuiziController {
    @ApiOperation("插入单条记录")
    public ThisDaySuiziDTO save(@RequestBody ThisDaySuiziDTO thisDaySuizi);

    // @ApiOperation("Find by Id")
    public ThisDaySuiziDTO findById(@PathVariable("id") String id);

    // @ApiOperation("Delete based on primary key")
    public void delete(@PathVariable("id") String id);

    // @ApiOperation("Find all data")
    public List<ThisDaySuiziDTO> list();

    // @ApiOperation("Pagination request")
    public Page<ThisDaySuiziDTO> pageQuery(Pageable pageable);

    // @ApiOperation("Update one data")
    public ThisDaySuiziDTO update(@RequestBody ThisDaySuiziDTO dto, @PathVariable("id") String id);
}